package com.platform.modules.wallet.event.listener;

import com.platform.modules.wallet.event.TransferRefundEvent;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Title: 退款事件相关监听
 * @Description:
 * @Author: longge
 * @Date: 2020/12/30
 * @Version: V1.0
 */
@Component
@Log4j2
public class RefundListener {

    /**
     * 转账过期事件监听
     */
    @EventListener
    public void refundListener(TransferRefundEvent event) {
        String id = event.getSource().toString();
        log.info("触发转账退款事件：{}", id);
//
//        if (playService.stop(Integer.parseInt(playId))) {
//
//            RoomPlay roomPlay = playService.getById(Integer.parseInt(playId));
//            //播放下一首
//            applicationEventPublisher.publishEvent(new SongPlayEvent(roomPlay.getRoomId()));
//        }
    }
}
